#这个也得有
FROM openjdk:8-jre-alpine
#复制打好的jar包
COPY target/*.jar /thirdParty.jar
RUN  apk add -U tzdata; \
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime; \
echo 'Asia/Shanghai' >/etc/timezone; \
touch /system.jar;

EXPOSE 5002

ENTRYPOINT [ "sh", "-c", "java -Djava.security.egd=file:/dev/./urandom  -jar -Xms100m -Xmx100m /thirdParty.jar " ]